home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
msdos
/
viewers
/
gifkit11
/
gifcolor.doc
< prev
next >
Wrap
Text File
|
1990-02-22
|
3KB
|
57 lines
GIFCOLOR
version 1.2, portable
11/16/89
by James W. Birdsall
GIF and "Graphic Interchange Format" are trademarks (tm) of
CompuServe, Inc., an H&R Block company.
GIFCOLOR [[-v|a|d[v]] [target]] [-c[v|f[nnn]] file1 file2]
This program reads and returns information about the global color
map in a GIF file. With no options, it returns the number of unique
colors versus the size of the color map, the background color index
and RGB value, and the RGB value and number of repetitions of each
repeated color. In this context, "unique color" means that the first
instance of any RGB value is recognized and any repetitions of it
thereafter are pretty much ignored; that is, two or more color map
entries with identical RGB values are treated as one color.
ONLY ONE OPTION MAY BE USED. THE OPTION MUST BE FIRST ARGUMENT.
-v VERBOSE appends all unique RGB values in the color map.
-a ALL appends all RGB values in the color map, in the order
in which they appear
-d DISPLAY --DOS WITH VGA ONLY-- appends a display of all unique
RGB values, marked with RGB values.
-dv DISPLAY VERBOSE
--DOS WITH VGA ONLY-- appends a display of all RGB
values, marked with RGB values and index.
-c COMPARE compares unique values in two color maps. Returns
different, effectively identical (unique colors
match), or one map is a subset of the other.
-cv COMPARE VERBOSE
compares two color maps byte by byte. Returns
identical or different.
-cf[nnn] COMPARE FUZZY [WITH TOLERANCE nnn]
compares unique values in two color maps by searching
for best match and checking if best match is within
given tolerance (default is 10). Returns different,
fuzzily identical, or one map is a fuzzy subset of
the other.
TARGET may be a filename, a filename with wildcards, or a path.
FILEn is a filename, optionally including a path.
The "Press any key..." prompt is automatically suppressed when stdout is
redirected. Stdout cannot be redirected if any display (-d) option is used.
GIFCOLOR can accept a list of targets from stdin. If stdin is redirected,
GIFCOLOR parses any command line options and then reads targets from stdin
ONLY -- all command line targets are discarded. This list may come from GIFLS
or from a file. Targets must be separated by a newline. Stdin cannot be
redirected if any compare (-c) option is used.